package com.neusoft.movie.v_movies.model;


import com.neusoft.movie.v_movies.common.Constants;
import com.neusoft.movie.v_movies.javabean.CollectStatus;
import com.neusoft.movie.v_movies.listener.RetrofitListener;
import com.neusoft.movie.v_movies.service.CollectStateService;
import com.neusoft.movie.v_movies.service.MoviesService;

import retrofit2.Call;

/**
 * Created by Administrator on 2017/12/26.
 */

public class CollectStateModel extends RetrofitBaseModel {
    private CollectStateService collectStateService;


    public CollectStateModel() {
        this.collectStateService = retrofit.create(CollectStateService.class);
    }

    public void collectstate(int u_id, int collect_id, int collect_flag, RetrofitListener listener) {
        Call call = collectStateService.collectstate(u_id,collect_id,collect_flag);
        bindCallback(call,listener,Constants.ISCOLLECT);
    }
    public void collectauthorstate(int u_id, int collect_id, int collect_flag, RetrofitListener listener) {
        Call call = collectStateService.collectauthorstate(u_id,collect_id,collect_flag);
        bindCallback(call,listener,Constants.ISCOLLECTAUTHOR);
    }



}
